package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FamilytreeMapper;
import com.ruoyi.system.domain.Familytree;
import com.ruoyi.system.service.IFamilytreeService;

/**
 * 直系亲人报告Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
@Service
public class FamilytreeServiceImpl implements IFamilytreeService 
{
    @Autowired
    private FamilytreeMapper familytreeMapper;

    /**
     * 查询直系亲人报告
     * 
     * @param id 直系亲人报告主键
     * @return 直系亲人报告
     */
    @Override
    public Familytree selectFamilytreeById(Long id)
    {
        return familytreeMapper.selectFamilytreeById(id);
    }

    /**
     * 查询直系亲人报告列表
     * 
     * @param familytree 直系亲人报告
     * @return 直系亲人报告
     */
    @Override
    public List<Familytree> selectFamilytreeList(Familytree familytree)
    {
        return familytreeMapper.selectFamilytreeList(familytree);
    }

    /**
     * 新增直系亲人报告
     * 
     * @param familytree 直系亲人报告
     * @return 结果
     */
    @Override
    public int insertFamilytree(Familytree familytree)
    {
        return familytreeMapper.insertFamilytree(familytree);
    }

    /**
     * 修改直系亲人报告
     * 
     * @param familytree 直系亲人报告
     * @return 结果
     */
    @Override
    public int updateFamilytree(Familytree familytree)
    {
        return familytreeMapper.updateFamilytree(familytree);
    }

    /**
     * 批量删除直系亲人报告
     * 
     * @param ids 需要删除的直系亲人报告主键
     * @return 结果
     */
    @Override
    public int deleteFamilytreeByIds(Long[] ids)
    {
        return familytreeMapper.deleteFamilytreeByIds(ids);
    }

    /**
     * 删除直系亲人报告信息
     * 
     * @param id 直系亲人报告主键
     * @return 结果
     */
    @Override
    public int deleteFamilytreeById(Long id)
    {
        return familytreeMapper.deleteFamilytreeById(id);
    }
}
